import {axios} from '@/utils/request'
/**
 * 短信下发
 * */

// 短信下发查询接收人
export function queryCompanyUserRel () {
  return axios({
    url: '/companyUserRel/queryReceiverList',
    method: 'post'
  })
}

// 查询短信模板
export function querySmsTemplate (model) {
  return axios({
    url: '/infoSmsDelivery/querySmsTemplate',
    method: 'post',
    data: model
  })
}

// 添加
export function insertInfoSmsDelivery (model) {
  return axios({
    url: '/infoSmsDelivery/insert',
    method: 'post',
    data: model
  })
}

// 查询表格数据
export function queryInfoSmsDelivery (model) {
  return axios({
    url: '/infoSmsDelivery/query',
    method: 'post',
    data: model
  })
}

// 删除
export function deleteInfoSmsDelivery (id) {
  return axios({
    url: '/infoSmsDelivery/delete/'+id,
    method: 'post'
  })
}